CWD := $(pwd)

OBJS := main.o kbd.o command.o display.o insert.o search.o files.o utils.o

edit: $(OBJS)
	cc -o edit $(OBJS)

main.o: defs.h
kbd.o: defs.h command.h
command.o: defs.h command.h
display.o: defs.h buffer.h
insert.o: defs.h buffer.h
search.o: defs.h buffer.h
files.o: defs.h buffer.h command.h
utils.o: defs.h

.PHONY: clean
clean:
	rm edit $(OBJS)
